/* eslint-disable spaced-comment */
/* eslint-disable eqeqeq */
/* eslint-disable comma-dangle */
/* eslint-disable quotes */
/* eslint-disable semi */
import request from "@/utils/request";

//sku列表  /admin/product/list/{page}/{limit} GET
export const reqSkuList = (page, limit) => {
  return request({
    url: `/admin/product/list/${page}/${limit}`,
    method: "GET",
  });
};

//上架  /admin/product/onSale/{skuId} GET
export const reqSale = (skuId) => {
  return request({
    url: `/admin/product/onSale/${skuId}`,
    method: "GET",
  });
};

//下架 /admin/product/cancelSale/{skuId} GET
export const reqCancel = (skuId) => {
  return request({
    url: `/admin/product/cancelSale/${skuId}`,
    method: "GET",
  });
};

//获取SKU详情的接口  /admin/product/getSkuById/{skuId} GET
export const reqSkuById = (skuId) => {
  return request({
    url: `/admin/product/getSkuById/${skuId}`,
    method: "GET",
  });
};
